//
//  OrderDetailProdItemCell.m
//  JiaoX
//
//  Created by yinqy on 15/1/20.
//  Copyright (c) 2015年 北京娇羞科技有限公司. All rights reserved.
//

#import "OrderDetailProdItemCell.h"

@implementation OrderDetailProdItemCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ORDERITEM_ID = @"ORDERDETAILITEMCELL";
    OrderDetailProdItemCell *cell = [tableView dequeueReusableCellWithIdentifier:ORDERITEM_ID];
    if (!cell) {
        cell = [[OrderDetailProdItemCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ORDERITEM_ID];
    }
    return cell;
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        OrderProdItemView *orderCellView =  [[OrderProdItemView alloc]init];
        _orderProdItemView  = orderCellView;
        [orderCellView setFrame:CGRectMake(0, 0, JXScreenW, ORDER_ITEM_VIEW_HEIGHT)];
        [self addSubview:orderCellView];
    }
    return self;
}


@end
